package com.interview.content.service.impl;

import com.interview.common.utils.PageUtils;
import com.interview.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.interview.content.dao.CmsInterviewDao;
import com.interview.content.entity.CmsInterviewEntity;
import com.interview.content.service.CmsInterviewService;


@Service("cmsInterviewService")
public class CmsInterviewServiceImpl extends ServiceImpl<CmsInterviewDao, CmsInterviewEntity> implements CmsInterviewService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CmsInterviewEntity> page = this.page(
                new Query<CmsInterviewEntity>().getPage(params),
                new QueryWrapper<CmsInterviewEntity>()
        );

        return new PageUtils(page);
    }

}